import axios from "axios";
import service from "@/config/index";

// 管理员信息
async function tenantInfo () {
  let response = await axios.get(`${service.serviceTenant}`);
  return response;
}

// 管理员信息修改
async function tenantPutInfo (params) {
  let response = await axios.put(`${service.serviceTenant}`, params);
  return response;
}

// 普通用户信息
async function commonInfo () {
  let response = await axios.get(`${service.serviceUser}`);
  return response;
}

// 普通用户信息修改
async function commonPutInfo (userKeyId, params) {
  let response = await axios.get(`${service.serviceUser}/${userKeyId}`, params);
  return response;
}

export { tenantInfo, tenantPutInfo, commonInfo, commonPutInfo };
